
import 'dart:async';

import 'package:flutter/services.dart';

class FlutterEncryption {
  static const MethodChannel _channel =
      const MethodChannel('flutter_encryption');

  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<String?> encode(String string) async {
    final String? result = await _channel.invokeMethod("encode", {"s": string, "k": "ABB7A9726E68BB4729653C7C"});
    return result;
  }

  static Future<String?> decode(String string) async {
    final String? result = await _channel.invokeMethod("decode", {"s": string, "k": "ABB7A9726E68BB4729653C7C"});
    return result;
  }

  static Future<String?> encode2(String string) async {
    final String? result = await _channel.invokeMethod("encode2", {"s": string, "k": "58DFE7D7565A303F7F24B283"});
    return result;
  }

  static Future<String?> decode2(String string) async {
    final String? result = await _channel.invokeMethod("decode2", {"s": string, "k": "58DFE7D7565A303F7F24B283"});
    return result;
  }
}
